package com.freewater.springboot.demo.aop.api.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class Aspect1 {

    @Pointcut("execution(* com.freewater.springboot.demo.aop.api.aspect.*Business.*(..))")
    public void someBusiness() {

    }

    @Before("someBusiness()")
    public void beforeAdvice() {
        System.out.println("before advice");
    }
}
